package com.bjsxt.livegoods.buytime.client.controller;

import com.bjsxt.livegoods.buytime.client.service.BuytimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BuytimeController {
    @Autowired
    private BuytimeService buytimeService;

    @GetMapping
    @CrossOrigin
    public Map<String,Object> buytime(String id){
        return buytimeService.buytime(id);
    }
}
